<?php get_header(); ?>
<?php get_template_part( 'homecat/slide', '' );?>
<div class="mdui-row mdui-col-md-8 mdui-col-xs-12 postlist" style="display: inline-block;">
    <div class="mdui-tab mdui-tab-centered mdui-m-b-1 mdui-color-theme" mdui-tab style="width: 100%;box-shadow: 0px 0px 20px -5px rgba(158, 158, 158, .22) !important;border-radius: 3px !important;">
        <a href="#allpost" class="mdui-ripple">所有文章</a>
        <?php if (get_query_var('paged')==0) {
            echo '<a href="#allannounce" class="mdui-ripple">所有公告</a>';
        }
        ?>
    </div>
    <?php get_template_part( 'homecat/postlist', '' );?>
    <?php 
    if (get_query_var('paged')==0) {
        get_template_part( 'advance/announcelist', 'loop' );
    }
    ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
